package version

import (
	"fmt"

	"gitee.com/huangxinbo/xcas/pkg"
	"github.com/spf13/cobra"
)

var (
	StartCmd = &cobra.Command{
		Use:     "version",
		Short:   "Get cas version",
		Example: "cas version",
		Run: func(cmd *cobra.Command, args []string) {
			run()
		},
	}
)

func run() {
	fmt.Println(pkg.Green(pkg.GetEnvString("SERVER.VERSION", "0.0.1")))
}
